//
//  NetManager.h
//  UpNote
//
//  Created by Justsoso on 16/4/3.
//  Copyright © 2016年 Justsoso. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NetManager : NSObject

/**
 *  查询网络笔记
 *
 *  @param successBlock 查询成功时执行的block
 */
+ (void)requestSearchNoteWith:(void (^)(NSArray *arr))successBlock;

/**
 *  添加笔记
 *
 *  @param content      笔记内容
 *  @param time         笔记时间
 *  @param successBlock 添加成功时执行的block
 */
+ (void)requestAddNoteWithContent:(NSString *)content
                          andTime:(NSString *)time
                     successBlock:(void (^)())successBlock;


/**
 *  删除笔记
 *
 *  @param noteId       笔记ID
 *  @param successBlock 删除成功时执行的block
 */
+ (void)requestRemoveNoteWithNoteId:(NSString *)noteId
                       successBlock:(void (^)())successBlock;
@end
